/*

 UNCloudflare - use the Internet Archive to browse to captcha'd sites.

 This tiny script can be compiled into a bookmarklet and used for browsing 
 sites that are "protected" *ahem* by CloudFlare's annoying captchas.
 
 Why not just beat it, solve the captchas and proceed, you may ask. The answer:
 because even if you devote time and effort to doing this, CloudFlare requires
 the planting of a tracking cookie in your browser in order to "allow" you to
 browse their sites. This is unacceptable; why are we using torbrowser in first
 place again? Fuck this shitty proof of work.

 USAGE: "minify" this script using jscompress.com, jsmin or a similar service,
 then add a new bookmark on your browser. In the URL field, prepend 
 `javascript:` and paste the minified content there.

 Copyright kzimmermann 2016 - All Rights Reserved.

 Licensed under the terms of the GNU GPL v3

     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation, either version 3 of the License, or
     (at your option) any later version.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License
     along with this program. If not, see <http://www.gnu.org/licenses/>.
 
 */

(function () {
    "use strict";

    // choices of proxies are still few because I don't know many yet.
    // If you have other proxies available, let me know!
    var original = window.location.href,
        // Archive.org's webcrawler. Slow, but reliable. Also helps archiving!
        // proxy = "https://web.archive.org/web/";
        
        // anonymouse.org's free webproxy. Very fast, but no HTTPS.
        proxy = "http://anonymouse.org/cgi-bin/anon-www.cgi/";

    window.location.href = proxy + original;
}());
